package com.peoit.honeycomb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Bing.Zeng on 2015/9/29.
 */
@Entity
@Table(name = "honeycomb_investments")
public class Investment extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	@ManyToOne
	private HoneycombProject project;

	@ManyToOne
	private User user;

	// 投资金额
	private double amount;
	// 投资介绍
	@Column(length = 128, nullable = true)
	private String description;
	// 投资状态
	private int status; // 1:支付保证金，2:已签合同 3：取消投资

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public HoneycombProject getProject() {
		return project;
	}

	public void setProject(HoneycombProject project) {
		this.project = project;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
